package org.example.redirect.console.common;

import org.springframework.context.ApplicationContext;

import java.io.FileOutputStream;
import java.io.PrintStream;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Util {
    public static ApplicationContext context=null;
    public static PrintStream toOut=null;
    public static PrintStream toErr=null;
    public static FileOutputStream toFileOut=null;
    public static FileOutputStream toFileErr=null;
    public static String dayStr=null;
    public static String dirStr=null;

    public static String getDayStr(){
        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH-mm-ss");
        return format.format(new Date());
    }
}
